	<!-- 当前所在位置 START -->
	{include file="_url.here.tpl"}
	<!-- 当前所在位置 END -->

	<!-- 主体区 -->
	<div class="area">

		<!-- 所有分类 START -->
		<div class="all_category">

			{if $_sysvars.url_rewrite == 'html' || $_sysvars.url_rewrite == 'rewrite'}

			<!-- 大分类组 START -->
			{counter start=0 print=false }
			{foreach from=$cats item=catinfo}
			<div class="category{counter assign=i}{if $i == 2} secondth{elseif $i == 3} thirdth{elseif $i > 3} secondth thirdth{/if}">
				<div class="tt">
					<em><img src="{$_s.up_dir}thumb/{$catinfo.picpath}" width="100" height="75" alt="{$catinfo.name}"></em>
					<h2>{$catinfo.name}</h2>
					<div class="clear"></div>
				</div>
				<div class="block">
					{foreach from=$catinfo.categorys item=sec_catinfo}
					<dl>
						<dt>{$sec_catinfo.name}</dt>
						<dd><ul><a href="{$_s.pub_dir}goods/{$sec_catinfo.mark}/">不限</a></ul>
							<ul class="items">
								{foreach from=$sec_catinfo.categorys item=thr_catinfo}
								<li><span>|</span><a href="{$_s.pub_dir}goods/{$thr_catinfo.mark}/">{$thr_catinfo.name}</a></li>
								{/foreach}
							</ul>
							<div class="clear"></div>
						</dd>
					</dl>
					{/foreach}
				</div>
			</div>
			{/foreach}
			<!-- 大分类组 END -->



			{else}



			<!-- 大分类组 START -->
			{counter start=0 print=false }
			{foreach from=$cats item=catinfo}
			<div class="category{counter assign=i}{if $i == 2} secondth{elseif $i == 3} thirdth{elseif $i > 3} secondth thirdth{/if}">
				<div class="tt">
					<em><img src="{$_s.up_dir}thumb/{$catinfo.picpath}" width="100" height="75" alt="{$catinfo.name}"></em>
					<h2>{$catinfo.name}</h2>
					<div class="clear"></div>
				</div>
				<div class="block">
					{foreach from=$catinfo.categorys item=sec_catinfo}
					<dl>
						<dt>{$sec_catinfo.name}</dt>
						<dd><ul><a href="{$_s.web_dir}index.php?mdl=goods&mark={$sec_catinfo.mark}">不限</a></ul>
							<ul class="items">
								{foreach from=$sec_catinfo.categorys item=thr_catinfo}
								<li><span>|</span><a href="{$_s.web_dir}index.php?mdl=goods&mark={$thr_catinfo.mark}">{$thr_catinfo.name}</a></li>
								{/foreach}
							</ul>
							<div class="clear"></div>
						</dd>
					</dl>
					{/foreach}
				</div>
			</div>
			{/foreach}
			<!-- 大分类组 END -->

			{/if}

		</div>
		<!-- 所有分类 END -->

	</div>